package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhentao.model.pay.dto.PayDto;
import com.zhentao.model.pay.pojo.ApUserVip;
import com.zhentao.model.pay.vo.PayVo;
import com.zhentao.model.pay.vo.UserVipVo;
import com.zhentao.service.ApUserVipService;
import com.zhentao.mapper.ApUserVipMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 许文倩
* @description 针对表【ap_user_vip】的数据库操作Service实现
* @createDate 2024-07-12 09:07:44
*/
@Service
public class ApUserVipServiceImpl extends ServiceImpl<ApUserVipMapper, ApUserVip>
    implements ApUserVipService{
    @Resource
    ApUserVipMapper apUserVipMapper;

    @Override
    public PageInfo<UserVipVo> getList(PayDto dto) {
        PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
        List<UserVipVo> payVos=apUserVipMapper.userVipList(dto.getNickName());
        PageInfo<UserVipVo> payVoPageInfo=new PageInfo<>(payVos);
        return payVoPageInfo;
    }
}




